The Method Replacement Indicator: A Metric for Analyzing Behavioral Substitution

نویسندگان

  • Reinhard Schauer
  • Rudolf K. Keller
چکیده

Object-oriented programming is about the creation of reusable classes that are to be extended to capture the specific requirements of the application at hand. However, instead of extending the methods of these classes, programmers often introduce subclasses in which they replace these methods with implementations that are completely detached from the superclass; that is, the subclass method does not invoke, directly or indirectly, its counterpart in the superclass. In this paper, we apply the SPOOL environment to the reverse-engineered C++ source code of two industrial systems to investigate the occurrences and causes for method replacements, both at the method and at the class level. We define the method replacement indicator (MRI), which quantifies the extent of method replacements. Based on the data obtained in the analysis, we identify and discuss the causes why programmers replace non-primitive method implementations of reusable classes.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Indicator of $S$-Hausdorff metric spaces and coupled strong fixed point theorems for pairwise contraction maps

In the study of fixed points of an operator it is useful to consider a more general concept, namely coupled fixed point. Edit In this paper, by using notion partial metric, we introduce a metric space $S$-Hausdorff on the set of all close and bounded subset of $X$. Then the fixed point results of multivalued continuous and surjective mappings are presented. Furthermore, we give a positive resul...

متن کامل

The Kinetics and Mechanisms of Substitution Reactions of Trans-[Co(en)2CNCl]+ in Binary Mixed Solvent

The kinetics and mechanisms of the substitution reactions of trans-[Co(en)2CNCl]+ with unidentate anions,  , CN¯, I¯,  , Br¯ and SCN¯ in 60% v/v DMF-H2O binary solvent at 40.0±0.2 °C were studied spectrophotometrically. An Id mechanism was assigned for the replacement of chlorine by , CN¯ and I¯, an Ia one for...

متن کامل

Polymorphisms of the Dopamine D4 Receptor Gene in Stabled Horses are Related to Differences in Behavioral Response to Frustration

In stabled horses, behavioral responses to frustration are often observed, especially around feeding time. These behavioral responses are a useful indicator of their welfare. In this study, we investigated the association between this behavioral indicator and DRD4 gene polymorphisms in stabled horses. Twenty one horses housed in two stables were used. The horses were observed for approximately ...

متن کامل

Analyzing Hospital Bed Productivity Using an Innovative Indicator

Background and Aim: Hospital bed productivity is crucial for efficient management. In this study, the capacity of hospital beds in Al-Zahra Hospital in Isfahan was evaluated using an innovative indicator. Methods: The present study was performed by a descriptive method in 2018. Using the statistical data of Al-Zahra Hospital, field survey, review of the official license of the hospital and putt...

متن کامل

Assessment of the Log-Euclidean Metric Performance in Diffusion Tensor Image Segmentation

Introduction: Appropriate definition of the distance measure between diffusion tensors has a deep impact on Diffusion Tensor Image (DTI) segmentation results. The geodesic metric is the best distance measure since it yields high-quality segmentation results. However, the important problem with the geodesic metric is a high computational cost of the algorithms based on it. The main goal of this ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2001